<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <base th:href="@{/}">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="pragma" content="no-cache" />
  <meta http-equiv="cache-control" content="no-cache" />
  <meta http-equiv="expires" content="0" />
  <th:block th:include ="commHeaderInclude::commHead"></th:block>
  <th:block th:include="commHeaderInclude::formPageComm"></th:block>
  <title>选择医保平台</title>
</head>

<body class="ht">
<th:block th:include="commHeaderInclude::loading"></th:block>
<div class="tabTitle"><span><i class="mdi mdi-menu-up"></i>医保结算信息</span></div>
<div class="content-wrapper">
  <div class="breadCrumb">
    <i class="mdi mdi-map-marker"></i>
    <span><span th:text="${session.mcpName}"></span><i class="mdi mdi-chevron-double-right"></i>信息管理<i class="mdi mdi-chevron-double-right"></i>医保结算信息</span>
  </div>
  <form class="updateForm" id="updateForm" method="post">
    <div class="card" style="margin-bottom: 3.7rem">
      <div class="card-body">
        <h4 class="card-title" style="position: relative;">
          医保结算账户信息
          <div class="searchBtnContainer mb-3" style="position:absolute; right:0; top: -10px; text-align: right; font-weight: normal;">
            <a th:href="@{|hos/payLog/updateAllFs|}" class="btn btn-primary ml-0" role="openFrameWindow">更新</a>
            <a th:href="@{|/hos/pay/download|}" class="btn btn-outline-primary ml-0" target="bridge" >下载</a>
          </div>
        </h4>
        <div class="module vTable" th:object="${accountVo}">
          <table class="columnTable" cellpadding="0" cellspacing="0">
            <tbody>
            <tr style=" grid-template-columns: 120px auto;">
              <th style="padding-top:25px;">机构信息</th>
              <td class="p-0">
                <table cellpadding="0" cellspacing="0">
                  <tr style="width:100%; grid-template-columns: 130px auto;">
                    <th>医保定点机构代码</th>
                    <td th:text="${accountVo.orgNo}"></td>
                  </tr>
                  <tr style="width:100%; grid-template-columns: 130px auto;">
                    <th class="border-bottom-0">医保定点机构名称</th>
                    <td class="border-bottom-0" th:text="${accountVo.orgName}"></td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr style=" grid-template-columns: 120px auto;">
              <th style="padding-top:25px;">医保结算账户</th>
              <td class="p-0">
                <table cellpadding="0" cellspacing="0">
                  <tr style="width:100%; grid-template-columns: 130px auto;">
                    <th>开户银行</th>
                    <td th:text="${accountVo.accountBank}"></td>
                  </tr>
                  <tr style="width:100%; grid-template-columns: 130px auto;">
                    <th class="border-bottom-0">银行账号</th>
                    <td class="border-bottom-0" th:text="${accountVo.accountNo}"></td>
                  </tr>
                </table>
              </td>
            </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </form>
  <form class="searchForm" id="searchForm" method="post">
    <div class="card">
      <div class="card-body">
        <h4 class="card-title">按条件查询医保结算信息</h4>
        <div class="module searchModule" th:object="${vo.dto}">
          <ul class="mb-3">
            <li>
              <label>结算日期</label>
              <div><input class="ht-dateInput" type="date" name="payStartDate" th:value="*{payStartDate}" placeholder="" data-options="endSelector:'[name=payEndDate]'" /></div>
              <span class="ht_dateText d-inlineBlock">至</span>
              <div><input class="ht-dateInput" type="date" name="payEndDate" th:value="*{payEndDate}" placeholder="" data-options="startSelector:'[name=payStartDate]'"/></div>
            </li>
            <li>
              <label>款项性质</label>
              <select name="paymentNature">
                <option th:value="*{paymentNature}" selected role="OptionSelected"></option>
                <option value="">全部</option>
                <option value="1">按月拨付金额</option>
              </select>
            </li>
            <li>
              <label>凭证编号</label>
              <div><input th:value="*{payApplyFlowNo}"  type="text" name="payApplyFlowNo" /></div>
            </li>
            <li>
              <label style="background-color: transparent; border-right-color: transparent;"></label>
            </li>

          </ul>
          <div class="searchBtnContainer">
            <input class="btn btn-primary" style="margin-right: 1.25rem;" type="submit" id="search" value="查询">
            <input class="btn btn-clear" type="clear" role="ClearButton" value="清空">
          </div>
        </div>
      </div>
    </div>
  </form>
  <form class="listForm" id="listForm" method="post">
    <div class="card mb-3">
      <div class="card-body">
        <h4 class="card-title">
          <span>医保结算信息列表</span>
        </h4>
        <div class="module">
          <table cellpadding="0" cellspacing="0" class="hTable">
            <thead>
            <tr>
              <th>序号</th>
              <th>医保定点机构名称</th>
              <th>医保定点机构代码</th>
              <th>结算起始日期</th>
              <th>结算终止日期</th>
              <th>申报人次</th>
              <th>申报金额</th>
              <th>医疗总费用</th>
              <th>基金支付合计</th>
              <th>账户支付合计</th>
              <th>现金支付合计</th>
              <th>款项性质</th>
              <th>凭证编号</th>
              <th>查询原因</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="li,item:${vo.page.list}">
              <td th:text="${item.index+vo.page.startRow}">1</td>
              <td th:text="${@util.fStr(li.payMc)}"></td>
              <td th:text="${li.payIdno}"></td>
              <td th:text="*{#dates.format(li.payStartDate,'yyyy-MM-dd')}" class="time">结算起始日期</td>
              <td th:text="*{#dates.format(li.payeEndDate,'yyyy-MM-dd')}" class="time">结算终止日期</td>
              <td th:text="${li.personTimes}"></td>
              <td th:text="${@util.fAmt(li.applyAmount)}"></td>
              <td th:text="${#numbers.formatDecimal(li.totalAmount,1,'COMMA',2,'POINT')}"></td>
              <td th:text="${#numbers.formatDecimal(li.fundPayment,1,'COMMA',2,'POINT')}"></td>
              <td th:text="${#numbers.formatDecimal(li.accountPayment,1,'COMMA',2,'POINT')}"></td>
              <td th:text="${#numbers.formatDecimal(li.cashPayment,1,'COMMA',2,'POINT')}"></td>
              <td th:text="${li.paymentNature}"></td>
              <td th:text="${li.payApplyFlowno}"></td>
              <td th:text="${@util.fStr(li.queryReason)}"></td>
            </tr>
            </tbody>
          </table>
          <div class="noneRecord" th:if="${vo.page.total==0}">暂无信息</div>
          <th:block th:include ="commHeaderInclude::pageInfoComm"></th:block>
        </div>
      </div>
    </div>
  </form>
</div>
</body>
<script>
  var page=new ListPage();
  page.init();
</script>
</html>